<?php
    require_once('includes/general.php');
    if(!tep_db_checkDb()) die('ko ket noi dc csdl');
    
   
     $keyword = $_POST['find'];
     $content=' ';
     $sql="select * from tbl_san_pham where ten_san_pham like '%$keyword%'";
     $kq=tep_db_query($sql);
        $content.='
        
        <div id="timkiem" class="jcarousel-skin-tango">                      
     
    	<ul id="mycarousel">';        
      while($item=tep_db_fetch_array($kq)){       
           
           
               $content.='  <li><div class="block">
                                	<a href="?page=chitietsanpham&amp;madanhmuc='.$item['ma_danh_muc'].'&amp;masanpham='.$item['id'].'&amp;mode=detail">	<img src="images/'.$item['hinh_anh'].'" alt="'.$item['hinh_anh'].'"/></a>
									<a href="?page=chitietsanpham&amp;madanhmuc='.$item['ma_danh_muc'].'&amp;masanpham='.$item['id'].'&amp;mode=detail">	<h3>'.$item['ten_san_pham'].'</h3></a>
									<p >'.$item['mo_ta_san_pham'].'</p>   
                                </div>
                            </li>'  ;
              
      }
      $content.='	</ul>
					<div id="wrapper">
							<div id="image"></div>
						<div id="thumbnails">
							<div id="slideleft" title="Slide Left"></div>
							<div id="slidearea">
								<div id="slider"></div>
							</div>
							<div id="slideright" title="Slide Right"></div>
						</div>
					</div>

               
        </div>
                
                ';
                    /*************chi tiet san pham*******************/
                   
                echo $content;

     
?>